package com.huawei.app.demo.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.View;

import com.huawei.app.demo.MsgHandler;

/**
 * 功能描述
 *
 * @since 2021-01-20
 */
public abstract class CustomFragment extends Fragment implements View.OnClickListener {

    protected MsgHandler msgHandler;

    public CustomFragment() {
    }

    public abstract String getTitle();

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        msgHandler = new MsgHandler(getActivity());
    }

    @Override
    public void onClick(View v) {

    }

    /**
     * 初始化组件状态(例如Checkbox选中状态)
     */
    public void initViewStatus() {
    }
}
